#!/bin/bash 
# testing the exit status of a funtion
# 

func1() {
    ls -l badifle 
    echo "This was a test of bad command"
}

echo "testing the function: "
func1
echo "The exit status is:$?"
